package it.eng.area118.mdocommon.android.sound;

import it.eng.area118.mdocommon.android.notification.AndroidNotification;

public class AndroidSoundManager {

	private static AndroidSound INSTANCE;

	private static Object object = new Object();

	private AndroidSoundManager() {

	}

	public synchronized static AndroidSound createInstance() {
		synchronized (object) {
			if (INSTANCE == null) {
				INSTANCE = new AndroidSound();
			}
			return INSTANCE;
		}

	}

	public synchronized static AndroidSound getInstance() {
		synchronized (object) {
			if (INSTANCE == null) {
				throw new NullPointerException(
						"AndroidSound instance never create... use createInstance first!");
			}
			return INSTANCE;
		}

	}

}
